<!--
  @author heguanghua
  @since 2019/06/12 11:57
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead >
        <tr>
            <th lay-data="{type:'checkbox', width:50, unresize:true, align:'center', fixed:'left'}"></th>
            <th lay-data="{field:'id', width:60, unresize:true, align:'center', hide: true}">ID</th>
            <th lay-data="{field:'spId', width:150, unresize:true, align:'center'}">服务商ID</th>
            <th lay-data="{field:'spName', unresize:true, align:'center'}">服务商名称</th>
            <th lay-data="{field:'companyName', unresize:true, align:'center'}">公司名称</th>
            <th lay-data="{field:'plat',width:180, unresize:true, align:'center'}">所属平台</th>
            <th lay-data="{field:'manageCompanyName',width:200, unresize:true, align:'center'}">类型</th>
            <th lay-data="{field:'type',width:180, unresize:true, align:'center'}">黑白名单</th>
            <th lay-data="{field:'操作',width:100, unresize:true, align:'center', fixed:'right', toolbar: '#zmn-table-bar'}">操作</th>
        </tr>
    </thead>
    <tbody>
    <tr th:each="item:${items}">
        <td></td>
        <td th:text="${item.id}"></td>
        <td th:text="${item.spId}"></td>
        <td th:text="${item.spName}"></td>
        <td th:text="${item.companyName}"></td>
        <td th:text="${T(com.zmn.common.constant.GlobalConsts).getPlatName(item.plat)}"></td>
        <td th:text="${T(com.zmn.plat.common.dictionary.ChannelSpTwoTypeEnum).of(item.spTwoType).getName()} +
                ${item.spThirdType == null ? '' : '-'+
                T(com.zmn.plat.common.dictionary.ChannelSpThirdTypeEnum).of(item.spThirdType).getName()}"></td>
        <td th:text="${T(com.zmn.plat.common.dictionary.ChannelSpBlackListTypeEnum).of(item.type).getName()}"></td>
    </tr>
    </tbody>
</table>
